package Hangman;

import javax.swing.JFrame;
/**
 * Hangman class, the main class basicly holding the game in a single JFrame.
 * Creates a Menu and add it to start the game with calling the method init().
 * @author Robin E, Jakob L, Isac A, Cristian O, Eric P, Tobias W. 
 *
 */
@SuppressWarnings("serial")
public class Hangman extends JFrame
{
	private Menu menu;
		
	public static void main(String[]args)
	{
		new Hangman();
	}
	/**
	 * Hangman() the constructor of the class Hangman
	 * Creates a JFrame and set the frame settings.
	 * Add components and initialize the component.
	 */
	Hangman()
	{
		JFrame window = new JFrame("Hangman by Group 1");
		
		window.setSize(1000, 800);
		window.setResizable(false);
		window.setLocationRelativeTo(null);
		window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		menu = new Menu();

		window.add(menu);
		
		menu.init();
				
		window.setVisible(true);
	}

}
